# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-blastem
pkgver=0_git20190620
pkgrel=0
_commit="4206da1f986ecda199c82d4a2404eff904397f55"
pkgdesc="fast and accurate Genesis emulator"
url="https://github.com/libretro/blastem"
arch="all !aarch64 !armv7 !armhf !x86 !mips !mips64"
license="GPL-3.0-only"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/blastem/archive/$_commit.tar.gz"
builddir="$srcdir/blastem-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro GIT_VERSION="$_SCOMMIT"
}

package() {
	install -Dm644 "$builddir"/blastem_libretro.so "$pkgdir"/usr/lib/libretro/blastem_libretro.so
}

sha512sums="dfcb85d0cfb307377fbb7c997511cb97512827afa4f72e5bff0902e1818add02d32e4146974f79cd4d332529d2c7d919f58aa860042ab41ad9576b88c8eafe91  libretro-blastem-4206da1f986ecda199c82d4a2404eff904397f55.tar.gz"
